<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.text.SimpleDateFormat" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   <link rel="stylesheet" href="<%=path %>/admin/image/css/bootstrap2.min.css">
    <style type="text/css">
        th{text-align:center;}
              table
        {
            line-height:28px;
            font-size:12px;
        }
    </style>
  </head>
  
  <body>
          <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">欢迎页面</h3>
            </div>
            <div class="panel-body" style="min-height: 500px;">
               <table align="center" class="style1"  style=" line-height:35px; width:100%;text-align: center">
               <tr>
                   <td>
                       &nbsp;</td>
               </tr>
               <tr>
                   <td>
                       &nbsp;</td>
               </tr>
               <tr>
                   <td>
                       欢迎您的登录！</td>
               </tr>
            <tr>
                   <td>
                       您的登录IP为：<%=  request.getRemoteAddr().equals("0:0:0:0:0:0:0:1")?"127.0.0.1":request.getRemoteAddr() %></td>
               </tr>
               <tr>
                   <td>
				   <%
		Date d = new Date();
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String now = df.format(d);
	%>

                       当前时间：<%= now %></td>
               </tr>
               <tr>
                   <td>
                       &nbsp;</td>
               </tr>
               <tr>
                   <td>
                       &nbsp;</td>
               </tr>
           </table>

            </div>
        </div>


  </body>
</html>
